/*
 * Constantes.h
 *
 *  Created on: Oct 7, 2012
 *      Author: romina
 */

#ifndef CONSTANTES_H_
#define CONSTANTES_H_

#include <string>
using namespace std;

/*********************************************************************************/
/*           DATOS DEFAULT                                  				     */
/*********************************************************************************/
#define DIR_DEFAULT_ARBOL       (string)"DEFAULT_ARBOL"
#define M_DEFAULT_ARBOL 		16


/*********************************************************************************/
/*           HASH                                                                */
/*********************************************************************************/
#define PATH_FRASES_INPUT	"Frases_Celebres.txt"
#define DIR_HASH 			(string)"HASH_FRASES"
#define PATH_TABLA 			DIR_HASH + (string)"/tabla.txt"
#define PATH_TABLA_TMP 		DIR_HASH + (string)"/tabla_tmp.txt"
#define PATH_CUBOS 			DIR_HASH + (string)"/cubos.txt"
#define PATH_DOWLOAD		DIR_HASH + (string)"/reporte_hash.txt";
#define ANCHO_TABLA 		8
#define TAM_CUBO 			1024
#define STRING_BUFFER_HASH 	512


/**********************************************************************************/
/*       ARBOL B+                                                                 */
/**********************************************************************************/
#define DIR_ARBOL          		(string)"ARBOLBMAS"
#define PATH_ARBOL				DIR_ARBOL + (string)"/Diccionario_en_Arbol"
#define ERROR 					-1
#define OKEY 					0
#define SOBREFLUJO 				1
#define STRING_BUFFER_ARBOL 	64
#define TAM_CONTROL_NODO 		13
#define TAM_CONTROL_REGISTRO 	12



/**********************************************************************************/
/*     ALEATORIZACION DICCIONARIO - REPLACEMENT SELECTION - HEAP SORT - MERGE     */
/**********************************************************************************/
#define DIR_DICC                     (string)"ORDEN_DICC"
#define DIR_PARTICIONES              DIR_DICC + "/particiones"
#define DIR_MERGE					 DIR_DICC + "/fusion"
#define PATH_STOPWORDS_INPUT		 "stop-words.txt"
#define PATH_DICC_INPUT				 "diccionario.txt"
#define NOMBRE_DICC_INDEXADO  		 "diccionario_indexado"
#define PATH_DICC_NORMALIZADO		 DIR_DICC +"/diccionario_normalizado.txt"
#define PATH_DICC_INDEXADO		     DIR_DICC + "/" + (string)NOMBRE_DICC_INDEXADO
#define PATH_DICC_INDEXADO_BIN		 DIR_DICC + "/" + (string)NOMBRE_DICC_INDEXADO + (string)".bin"
#define PATH_DICC_ORDENADO    		 DIR_DICC + "/" + (string)NOMBRE_DICC_INDEXADO + (string)"_ordenado.bin"
#define PATH_DICC_FINAL				 "diccionario_final.bin"

#define RANDCSV 					429490
#define RAND    					429496729
#define LONG_INDICE 				9

#define N 							300
#define TAM_BUFFER_ORDENAMIENTO 	N*10
#define TAM_BUFFER_LECTURA 			N
#define TAM_BUFFER_ESCRITURA 		N
#define TAM_BUFFER_FUSION 			N
#define CLAVE_IMPOSIBLE 			"555555555"
#define MAX_PARTICIONES_OPEN 		10
#define CANT_BUFFERS_FUSION 		11


#endif /* CONSTANTES_H_ */
